package com.zhongkeruan.user.service;

import java.util.List;
import java.util.Optional;

import com.zhongkeruan.user.vo.User;

public interface IUserService {

	public User findByUsername(String username) throws Exception;

	public List<User> findAll() throws Exception;

	public Optional<User> findById(Long id) throws Exception;

	public User save(User user) throws Exception;

	public void delete(Long id) throws Exception;

	public void update(Long id, String userName) throws Exception;
}
